package com.guanglan.dao;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.guanglan.domain.SysRole;
import com.guanglan.domain.SysRolePermission;

public interface SysRolePermissionMapper {
	
    int deleteByPrimaryKey(Long id);

    int insert(SysRolePermission record);

    int insertSelective(SysRolePermission record);

    SysRolePermission selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SysRolePermission record);

    int updateByPrimaryKey(SysRolePermission record);
    
    List<Long> selectPermissionIdByRoleId(@Param("list") List<SysRole> list);
    
    int deleteByRoleId(@Param("id") long roleId);
    
    int deleteByPid(@Param("id") long permissionId);
    
}